/**********************************************************************
 *@Project： clouddemo
 *@File: HealthConfig
 *@Date: 2017/4/20
 *@Copyright (C) 2013-2017 http://www.posun.cn. All Rights Reserved.
 ***********************************************************************
 *注意： 本内容仅限于深圳市普盛实业有限公司内部使用，禁止外泄
 **********************************************************************
 */
package com.posun.edu.system.config;

import com.posun.framework.Constants;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * TODO<br>
 *
 * @author YL
 * @version 1.0
 * @createTime 2017/4/20 19:38
 * @ChangeLog
 */
@Configuration
public class HealthConfig implements HealthIndicator {

    @Override
    public Health health() {
        return Health.up().withDetail("appName", Constants.APP_NAME).build();
    }

}
